package com.fantasy.easy.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName biz_colla
 */
@TableName(value ="biz_colla")
public class BizColla implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "house")
    private String house;

    /**
     * 
     */
    @TableField(value = "car")
    private String car;

    /**
     * 
     */
    @TableField(value = "stock")
    private String stock;

    /**
     * 
     */
    @TableField(value = "bond")
    private String bond;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getHouse() {
        return house;
    }

    /**
     * 
     */
    public void setHouse(String house) {
        this.house = house;
    }

    /**
     * 
     */
    public String getCar() {
        return car;
    }

    /**
     * 
     */
    public void setCar(String car) {
        this.car = car;
    }

    /**
     * 
     */
    public String getStock() {
        return stock;
    }

    /**
     * 
     */
    public void setStock(String stock) {
        this.stock = stock;
    }

    /**
     * 
     */
    public String getBond() {
        return bond;
    }

    /**
     * 
     */
    public void setBond(String bond) {
        this.bond = bond;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BizColla other = (BizColla) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getHouse() == null ? other.getHouse() == null : this.getHouse().equals(other.getHouse()))
            && (this.getCar() == null ? other.getCar() == null : this.getCar().equals(other.getCar()))
            && (this.getStock() == null ? other.getStock() == null : this.getStock().equals(other.getStock()))
            && (this.getBond() == null ? other.getBond() == null : this.getBond().equals(other.getBond()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getHouse() == null) ? 0 : getHouse().hashCode());
        result = prime * result + ((getCar() == null) ? 0 : getCar().hashCode());
        result = prime * result + ((getStock() == null) ? 0 : getStock().hashCode());
        result = prime * result + ((getBond() == null) ? 0 : getBond().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", house=").append(house);
        sb.append(", car=").append(car);
        sb.append(", stock=").append(stock);
        sb.append(", bond=").append(bond);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}